package Zuoye0728;

public class Computer {
    private String brand;
    private String style;
    private Display display;
    private Mainframes mainframes;

    public Computer() {
    }

    public Computer(String brand, String style) {
        this.brand = brand;
        this.style = style;
    }

    public void kaiqi(){
        System.out.println("小孔有一台"+brand+"的"+style+"电脑");
        System.out.println("由显示器和机箱组成");
        mainframes.show();
        display.show();
    }

    public void guanbi(){

    }


    public Display getDisplay() {
        return display;
    }

    public void setDisplay(Display display) {
        this.display = display;
    }

    public Mainframes getMainframes() {
        return mainframes;
    }

    public void setMainframes(Mainframes mainframes) {
        this.mainframes = mainframes;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style;
    }

}
